﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DcsGauges
{
    static class MathEx
    {
        const float DEG_2_RAD_MUL = (float)Math.PI / 180.0f;

        public static float Deg2Rad(float degrees)
        {
            return degrees * DEG_2_RAD_MUL;
        }

        public static bool CompareDelta(int value0, int value1, uint delta)
        {
            return Math.Abs(value0 - value1) < delta;
        }
    }
}
